package entity;

import java.io.Serializable;

/**
 * 用户
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/9/27 16:21
 */
public class User implements Serializable {

    private static final long serialVersionUID = 6989003215373488358L;

    private Integer uid;
    private String username;// 对应的是uname字段
    private String upassword;// 密码
    private String usex;// 性别
    private String ustatus;// 用户激活状态 0未激活  1激活
    private String ucode;// 邮件激活码
    private String email;// uemail
    private Integer urole;//用户 0  管理员 1

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", upassword='" + upassword + '\'' +
                ", usex='" + usex + '\'' +
                ", ustatus='" + ustatus + '\'' +
                ", code='" + ucode + '\'' +
                ", email='" + email + '\'' +
                ", urole=" + urole +
                '}';
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex;
    }

    public String getUstatus() {
        return ustatus;
    }

    public void setUstatus(String ustatus) {
        this.ustatus = ustatus;
    }

    public String getUcode() {
        return ucode;
    }

    public void setUcode(String ucode) {
        this.ucode = ucode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUrole() {
        return urole;
    }

    public void setUrole(Integer urole) {
        this.urole = urole;
    }
}
